package com.example.bootcurriculumproject.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("orders")
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    //订单号
    //@TableId
    @TableField(fill = FieldFill.INSERT)
    private String consignmentnum;
    //收货地址
    private int addressnum;
    //商品信息
    private String goodno;
    //下单时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime datetime;
    //收货状态  (0：未发货 1：待收货)
    private int states;
    //购买数量
    private int buynumber;
    //用户id
    private String nowuid;
}
